package com.zzjson.cloud;

import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.Random;
import java.util.stream.Stream;

/**
 * <p>****************************************************************************</p>
 * <p><b>Copyright © 2010-2019 shuncom team All Rights Reserved<b></p>
 * <ul style="margin:15px;">
 * <li>Description : com.zzjson.cloud</li>
 * <li>Version     : 1.0.0</li>
 * <li>Creation    : 2019年09月18日</li>
 * <li>@author     : zzy0_0</li>
 * </ul>
 * <p>****************************************************************************</p>
 */
public class InetAddressDemo {
	public static void main(String[] args) throws UnknownHostException {
		Stream.of(InetAddress.getAllByName("www.baidu.com")).forEach(System.out::println);

		Random random = new Random();
		System.out.println(random.nextInt(2));
	}
}